cc.Class({
    extends: cc.Component,

    properties: {

    },

    init (data) {
        this.getComponent(cc.Sprite).loadImage(CONFIG.baseUrl + data.awardsImage);
        this.node.find('title', cc.Label).string = data.name;
        this.node.on('click', () => this.node.emit('BAG_CLICK', data));
    },

});
